home *** CD-ROM | disk | FTP | other *** search
- Path: galaxy.ucr.edu!not-for-mail
- From: thp@cs.ucr.edu (Tom Payne)
- Newsgroups: comp.lang.c++
- Subject: Re: Will JAVA kill C++?
- Date: 9 Mar 1996 00:47:48 GMT
- Organization: University of California, Riverside
- Message-ID: <4hqkfk$20j@galaxy.ucr.edu>
- References: <313E44EA.14D110C0@netcom.com> <4hp18v$3di@frodo.smartlink.net>
- NNTP-Posting-Host: corvette.ucr.edu
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Matt Austern (austern@isolde.mti.sgi.com) wrote:
- :
- : In C++, or Fortran, or Eiffel, you can have an array of complex
- : numbers. In Java, though, you can't: you can have something that
- : looks like an array of complex numbers, but internally it's really an
- : array of pointers to complex numbers. You have to pay a space penalty
- : to store those pointers, and a time penalty to do the dereferencing on
- : every element, and the optimizer will have to generate code on
- : assumption that two array elements might point to the same object.
-
- Are these references resettable? If not, how can they be made to
- collide like that? In fact, if they are not resettable, is there
- any reason that the extra level of indirection couldn't be
- optimized away?
-
- Tom Payne (thp@cs.ucr.edu)
-